package org.oslims.domain;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

import com.google.gwt.validation.client.NotNull;

@Entity
@DiscriminatorValue("MIXTURE")
public class Mixture extends Sample {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5412863703424799527L;
	@OneToMany(mappedBy = "rootSample")
	@NotNull
	private List<MixtureComponent> components = new ArrayList<MixtureComponent>();

	public List<MixtureComponent> getComponents() {
		return components;
	}

	public void setComponents(List<MixtureComponent> components) {
		this.components = components;
	}
}
